From 905483a981ce1920bb588e505c33b333f1d7189f Mon Sep 17 00:00:00 2001 From: Leopold Palomo-Avellaneda Date: Tue, 6 Oct 2015 08:36:02 +0200 Subject: [PATCH] Added parallel build in some Archs (!=32 bits). --- debian/changelog | 7 +++++++ debian/rules | 10 +++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 5cc44ebb..da4c3b1e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +pcl (1.7.2-11) UNRELEASED; urgency=medium + + * Add parallel build in some Archs (!=32 bits). + Closes: #799218 + + -- Leopold Palomo-Avellaneda Wed, 23 Sep 2015 12:12:31 +0200 + pcl (1.7.2-10) unstable; urgency=medium * Fix an other FTBFS on ppc64el diff --git a/debian/rules b/debian/rules index 88c850c4..387d5ae7 100755 --- a/debian/rules +++ b/debian/rules @@ -20,6 +20,14 @@ BUILD_DOC = $(if $(shell dh_listpackages | grep libpcl-doc),-DWITH_DOCS=ON) # Multiarch. DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) +# Num bits +DEB_HOST_ARCH_BITS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_BITS) + +ifeq ($(DEB_HOST_ARCH_BITS),32) + PARALLEL = "" +else + PARALLEL = --parallel +endif .PHONY: override_dh_auto_configure \ override_dh_install \ @@ -94,7 +102,7 @@ override_dh_installchangelogs: %: - dh $@ --builddirectory=build + dh $@ $(PARALLEL) --builddirectory=build get-orig-source: -- 2.30.2